package com.gupao.javavip.gof.strategy;

public class DivisionStrategy implements ICalculator {
    @Override
    public int calculate(int num1, int num2) {
        if (num2 == 0) {
            throw new IllegalArgumentException("除数不能为0！");
        }

        return num1 / num2;
    }
}
